import { get } from "../utils/request";

//获取用户信息

export const getUser = (id) => get(`/user/detail?uid=${id}`);

//获取用户信息 , 歌单，收藏，mv, dj 数量
export const getUserDetail = () => get(`/user/subcount`);

//发送验证码
export const sendCaptcha = (phone) => get(`/captcha/sent?phone=${phone}`);

//注册
export const regAPI = (phone, password, captcha, nickname) =>
  get(
    `/register/cellphone?phone=${phone}&password=${password}&captcha=${captcha}&nickname=${nickname}`
  );


